<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-apisn" class="control-label col-xs-12 col-sm-2">{:__('Apisn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apisn" data-rule="required" class="form-control" name="row[apisn]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-apiname" class="control-label col-xs-12 col-sm-2">{:__('Apiname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apiname" class="form-control" name="row[apiname]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-apiurl" class="control-label col-xs-12 col-sm-2">{:__('Apiurl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apiurl" data-rule="required" class="form-control" name="row[apiurl]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-apitimesperday" class="control-label col-xs-12 col-sm-2">{:__('Apitimesperday')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apitimesperday" data-rule="required" class="form-control" name="row[apitimesperday]" type="number" value="10">
        </div>
    </div>
    <div class="form-group">
        <label for="c-apiversion" class="control-label col-xs-12 col-sm-2">{:__('Apiversion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apiversion" class="form-control" name="row[apiversion]" type="text" value="v1.0">
        </div>
    </div>
    <!-- <div class="form-group">
        <label for="c-field1" class="control-label col-xs-12 col-sm-2">{:__('Field1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field1" data-rule="required" class="form-control" name="row[field1]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field2" class="control-label col-xs-12 col-sm-2">{:__('Field2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field2" data-rule="required" class="form-control" name="row[field2]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field3" class="control-label col-xs-12 col-sm-2">{:__('Field3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field3" data-rule="required" class="form-control" name="row[field3]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field4" class="control-label col-xs-12 col-sm-2">{:__('Field4')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field4" data-rule="required" class="form-control" name="row[field4]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field5" class="control-label col-xs-12 col-sm-2">{:__('Field5')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field5" data-rule="required" class="form-control" name="row[field5]" type="text">
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-state" class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-memo" class="control-label col-xs-12 col-sm-2">{:__('Memo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-memo" data-rule="required" class="form-control " rows="5" name="row[memo]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-logstate" class="control-label col-xs-12 col-sm-2">{:__('Logstate')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="logstateList" item="vo"}
            <label for="row[logstate]-{$key}"><input id="row[logstate]-{$key}" name="row[logstate]" type="radio" value="{$key}" {in name="key" value="logstate 0"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
